import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib as mpl
import warnings
warnings.filterwarnings("ignore")
mpl.rcParams.update(mpl.rcParamsDefault)
sns.set_style("white")
insurance = pd.read_csv('C:/Users/Lenovo/Desktop/机器学习课程/Data-Visualization-master/Seaborn/Datasets/insurance.csv')
fish = pd.read_csv('C:/Users/Lenovo/Desktop/机器学习课程/Data-Visualization-master/Seaborn/Datasets/Fish.csv')
print(fish.head())
fish1 = fish[fish['Species'].isin(['Bream', 'Perch', 'Pike'])]
fish1.head()

###################################################################################
# sns.regplot(x=fish1.Weight, y=fish1.Height)
# plt.show()
#
# sns.regplot(x=fish1.Weight, y=fish1.Height, color='#FF6600')
# plt.show()
#
# sns.regplot(x=fish1.Weight, y=fish1.Height, color='#FF6600', marker='>')
# plt.show()
#
# sns.regplot(x=fish1.Weight, y=fish1.Height, color='#FF6600', logx=True)
# plt.show()

sns.regplot(x=fish1.Weight, y=fish1.Height, logx=True, line_kws={'color':'#FF5722', 'alpha':0.8, 'lw':3})
plt.show()

sns.lmplot(x='bmi', y='charges', hue='smoker', data=insurance, height=8, aspect=1.2)
plt.show()